package com.accenture.portal.dao.questionnaire.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.accenture.portal.dao.questionnaire.QuestionMapper;
import com.accenture.portal.model.questionnaire.Question;

	@Repository
	public class QuestionMapperImpl implements QuestionMapper{
		
		@Autowired
		QuestionMapper questionMapper;

		@Override
		public Question getQuestionById(Integer questionId) {
			return questionMapper.getQuestionById(questionId);
		}

		@Override
		public void addQuestion(Question question) {
			questionMapper.addQuestion(question);
		}

		@Override
		public void deleteQuestion(Integer questionId) {
			questionMapper.deleteQuestion(questionId);
		}

		@Override
		public void editQuestion(Question question) {
			questionMapper.editQuestion(question);
		}

		@Override
		public List<Question> getQuestionByQuestionnaire(Integer questionnaireId) {
			return questionMapper.getQuestionByQuestionnaire(questionnaireId);
		}

		@Override
		public void deleteQuestionByQuestionnaire(Integer questionQuestionnaire) {
			questionMapper.deleteQuestionByQuestionnaire(questionQuestionnaire);
		}
}
